
function getUserImages()
{
	loadDataUser('getUserImages.php'); 
}

var conexion_six;
function loadDataUser(url) 
{

  if(url=='')
  {
        return;
  }
  conexion_six=postRequest();
  conexion_six.onreadystatechange = printUserImage;
  conexion_six.open("GET", url, true);
  conexion_six.send(null);
}

function postRequest() 
{
  var xmlHttp=null;
  if (window.XMLHttpRequest) {
	  xmlHttp = new XMLHttpRequest();
  }
  else if (window.ActiveXObject) {
	      xmlHttp = new ActiveXObject("Microsoft.XMLHTTP");
  }
  return xmlHttp;
}

function printUserImage()
{
  var entry = document.getElementById("images");
  if(conexion_six.readyState == 4)
  {
	  entry.innerHTML = conexion_six.responseText;
  } 
}

